﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class BrandInfoConfig : EntityTypeConfiguration<BrandInfo>
    {
        public BrandInfoConfig()
        {
            ToTable("Himall_Brands");
            Property(item => item.Name).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Logo).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.RewriteName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Description).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.Meta_Description).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.Meta_Keywords).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.Meta_Title).HasColumnType("varchar").HasMaxLength(1000);

        }
    }
}
